<!--
 * @Author: liyin 2179253556@qq.com
 * @Date: 2023-12-11 11:47:32
 * @LastEditors: liyin 2179253556@qq.com
 * @LastEditTime: 2024-01-09 11:33:45
 * @FilePath: \话单数据大屏\src\components\Common\Title.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="titleBox" ref="titleRef">
    <el-image class="bg" :src="require('../../assets/img/title_bg.png')" :style="'opacity:' + opacity + ';'"></el-image>
    <el-image class="arrow" :src="require('../../assets/img/title_icon.png')"></el-image>
    <div class="name">{{ title }}</div>
  </div>
</template>
<script>
export default {
  name:'Title',
  props: {
    title: {
      type: String,
      default: ''
    },
    opacity: {
      type: Number,
      default: 1
    },
  },
  data() {
    return {
    }
  },
  methods: {},
  mounted() { }
}
</script>
<style lang="less" scoped>
.titleBox {
  width: 444px;
  height: 49px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 18px;
  font-family: "DingTalk JinBuTi";
  font-weight: 400;
  color: #4BEEFF;
  position: relative;
  cursor: pointer;

  .el-image.bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .el-image {
    width: 23px;
    height: 12px;
    display: inline-block;
    margin-right: 10px;
    z-index: 10;
  }

  .name {
    z-index: 10;
  }
}
</style>
